

import java.math.BigDecimal;
import java.util.Scanner;
public class Text05 {
	public static void main(String[] args) {
		 Scanner in = new Scanner(System.in);
		 while(in.hasNext()){
			 String n1  = in.next();
			 String n2  = in.next();
			 BigDecimal a1=new BigDecimal(n1);
			 BigDecimal a2=new BigDecimal(n2);
			 BigDecimal result1=a1.add(a2);
			 BigDecimal result2=a1.multiply(a2);
			 System.out.println(result1);
			 System.out.println(result2);
		 }	
	}
}
